package ad.events 
{
	import flash.events.Event;
	import flash.geom.Point;
	
	/**
	 * SliderEvent
	 * @version ActionScript 3.0
	 * @author Adrian C. Miranda
	 * @mail ad@adrianmiranda.com.br
	 */
	public class SliderEvent extends Event 
	{
		public static const UPDATE:String = 'SliderEvent.UPDATE';
		public static const DRAG:String = 'SliderEvent.DRAG';
		public static const DROP:String = 'SliderEvent.DROP';
		
		public var percentage:Point;
		public var position:Point;
		public var offset:Point;
		
		public function SliderEvent(type:String, percentage:Point, position:Point, offset:Point, bubbles:Boolean = false, cancelable:Boolean = false) 
		{ 
			super(type, bubbles, cancelable);
			this.percentage = percentage;
			this.position = position;
			this.offset = offset;
		} 
		
		public override function clone():Event 
		{ 
			return new SliderEvent(type, percentage, position, offset, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString('SliderEvent', 'percentage', 'position', 'offset', 'type', 'bubbles', 'cancelable', 'eventPhase'); 
		}
		
	}
	
}